import http from '@/utils/http.js'
// 获取会话列表
export function chartList(params) {
  return http({
    url: `/msg_pay/chat/conversation`,
    method: 'get',
    params
  })
}

// 创建会话
export function addChat(data) {
  return http({
    url: '/msg_pay/chat/conversation',
    method: 'post',
    data
  })
}

// 获取会话消息
export function getMsg(params) {
  return http({
    url: '/msg_pay/chat/message',
    method: 'get',
    params
  })
} 